package net.oschina.arvin.admin.service.impl;

import net.oschina.arvin.admin.dao.PrivilegeDao;
import net.oschina.arvin.admin.model.Privilege;
import net.oschina.arvin.admin.service.PrivilegeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Arvin
 * @time 2017/11/25 22:26
 */
@Service
public class PrivilegeServiceImpl implements PrivilegeService {

    @Autowired
    private PrivilegeDao privilegeDao;

    @Override
    public List<Privilege> findAll() {
        return privilegeDao.findAll();
    }
}
